package com.study.extend_constructor2;

import com.study.extend_constructor2.Animal;

public class Wolf extends Animal {
    String habbit;

    public Wolf() {
    }

    public Wolf(String habbit) {
        this.habbit = habbit;
    }

    public Wolf(String name, int age, String habbit) {
        super(name,age);
        this.habbit=habbit;
    }

    public String getHabbit() {
        return habbit;
    }

    public void setHabbit(String habbit) {
        this.habbit = habbit;
    }
}
